package org.jeecg.extra.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 过期时间枚举常量.
 *
 * @author chao.xie
 * @version 1.0.0
 * @创建日期: 2024.03.15
 */
@Getter
@AllArgsConstructor
public enum TimeoutEnum {

    ONE_SECOND(1000, "1秒"),

    FIVE_SECOND(1000 * 5, "5秒"),

    TEN_SECOND(1000 * 10, "10秒"),

    THIRTY_SECOND(1000 * 30, "30秒"),

    ONE_MINUTE(1000 * 60, "1分钟"),

    FIVE_MINUTE(1000 * 60 * 5, "5分钟"),

    TEN_MINUTE(1000 * 60 * 10, "10分钟"),

    THIRTY_MINUTE(1000 * 60 * 30, "30分钟"),

    ONE_HOUR(1000 * 60 * 60, "1小时"),

    TWO_HOUR(1000 * 60 * 60 * 2, "2小时"),

    ONE_DAY(1000 * 60 * 60 * 24, "1天"),
    ;

    /**
     * 过期时长
     */
    private final int timeout;

    /**
     * 描述
     */
    private final String desc;
}
